package com.bestsoft.flow.mapper;

import java.util.List;

import com.bestsoft.common.annotation.DataSource;
import com.bestsoft.common.enums.DataSourceType;
import com.bestsoft.flow.domain.FlowOrderDt;
import com.bestsoft.flow.domain.FlowOrderDt2;
import org.springframework.stereotype.Service;

/**
 * 用户订单明细Mapper接口
 * 
 * @author 王识宇
 * @date 2023-08-28
 */
@Service
public interface FlowOrderDtMapper 
{
    /**
     * 查询用户订单明细
     * 
     * @param orderId 用户订单明细主键
     * @return 用户订单明细
     */
    public FlowOrderDt selectFlowOrderDtByOrderId(Long orderId);

    /**
     * 查询用户订单明细列表
     * 
     * @param flowOrderDt 用户订单明细
     * @return 用户订单明细集合
     */
    public List<FlowOrderDt> selectFlowOrderDtList(FlowOrderDt flowOrderDt);

    /**
     * 1查询用户订单明细列表ERP
     *
     * @param orderId 用户订单明细
     * @return 用户订单明细集合
     */
    @DataSource(value = DataSourceType.ERP)
    public List<FlowOrderDt2> selectFlowOrderDtListErp(Long orderId);

}
